package com.spring.boot.center.controller;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.spring.boot.center.service.HomeService;

@RestController
@RequestMapping("/center")
public class ConsumerController {

	private final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@Resource
	private HomeService homeService;
	
    @RequestMapping(value = "/home", method = RequestMethod.GET)
    public String home() {
    	return homeService.home();
    }

}
